package org.spring.springboot.hikencp.controller;

import org.spring.springboot.hikencp.domain.City;
import org.spring.springboot.hikencp.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CityController {
	
	@Autowired
	private CityService cityService;

    @RequestMapping("/findCityByName")
    public City findCityByName() {
        return this.cityService.findCityByName("徐州市");
    }
}